import request from '@/utils/request'

// 查询订单信息列表
export function listMovement(query) {
  return request({
    url: '/emsboot/movement/list',
    method: 'get',
    params: query
  })
}

// 查询订单信息详细
export function getMovement(id) {
  return request({
    url: '/emsboot/movement/' + id,
    method: 'get'
  })
}

// 新增订单信息
export function addMovement(data) {
  return request({
    url: '/emsboot/movement',
    method: 'post',
    data: data
  })
}

// 修改订单信息
export function updateMovement(data) {
  return request({
    url: '/emsboot/movement',
    method: 'put',
    data: data
  })
}

// 删除订单信息
export function delMovement(id) {
  return request({
    url: '/emsboot/movement/' + id,
    method: 'delete'
  })
}

// 导出订单信息
export function exportMovement(query) {
  return request({
    url: '/emsboot/movement/export',
    method: 'get',
    params: query
  })
}
// 导出订单信息
export function exportInMovement(query) {
  return request({
    url: '/emsboot/movement/exportout',
    method: 'get',
    params: query
  })
}
